<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form id='submitForm' action="${contextPath}/userController/submitData2.do" method="post">
        name:<input type="text" name="username" value='111' class="form-control"><br/>
        password:<input type="text" name="password" value='221' class="form-control"><br/>
        <button type="submit" class='btn btn-default'>prototype</button><button id="button3" class='btn btn-default'>ajax</button>
    </form>
<script type="text/javascript">
	$('#button3').click(function() {
		$('#submitForm').submit();
	});
</script>

</body>
</html>